package com.wen.Part6.DataStructure;

public class Edge {
    private String startKey;
    private String endKey;
    private int start;
    private int end;
    private int value;
    private int index;  // 边的唯一标识符

    public Edge(String startKey, String endKey, int start, int end, int value, int index) {
        this.startKey = startKey;
        this.endKey = endKey;
        this.value = value;
        this.index = index;
        this.start = start;
        this.end = end;
    }

    public Edge() {
    }

    public String getStartKey() {
        return startKey;
    }

    public String getEndKey() {
        return endKey;
    }

    public int getValue() {
        return value;
    }

    public int getIndex() {
        return index;
    }

    public int getStart() {
        return start;
    }

    public int getEnd() {
        return end;
    }

    @Override
    public String toString() {
        return String.format("<%s, %s>", startKey, endKey);
    }
}
